<?php

//判断是否来自场景体,底部菜单不变
if($_RQ['plugin_name']){
	$this->session('plugin_name',$_RQ['plugin_name']);
}
$plugin_name=$this->session('plugin_name')?$this->session('plugin_name'):'';
if($plugin_name && $plugin_name!='core'){
	$return['footernav']=$this->plugin($plugin_name)->plugin_setting('basic')['footernav'];
}
//全局返回mid
$return['mid']=$_SESSION['mid'];
$return['setting']=$this->plugin_setting('setting');
$return['shopset']=$this->plugin_setting('shopset');
$return['setting']['logo']=$return['shopset']['logo'];
$return['setting']['title']=$return['shopset']['title'];
$return['setting']['toplogo']=$return['setting']['toplogo']?:$return['setting']['logo'];
if($return['shopset']['closeshop']==1 && $_RQ['action'] !='close'){
	exi('','error','jy_weishop_en/close/');
}
if($_SESSION['os']=='windows'){
	$return['pc_set']=$this->plugin_setting('pc_set');
	$site=core_setting('site');
	$return['pc_set']['icp']=$return['pc_set']['icp']?:$site['icp'];
}
$return['current_plugin']=$_SESSION['current_plugin'];
if(!$_SESSION['store_id']){
	$storeset=$this->plugin_setting('storeset');
	if($storeset['isopen']){
		$_SESSION['store_id']=pdo_getcolumn('jy_weishop_store',array('uniacid'=>$_SESSION['uniacid'],'status'=>1),'id');
	}
}
$return['lat_lng']=$this->session('lat_lng');
$sharelink='jy_weishop_en/index//fromuser='.$_SESSION['uid'];
$return['sharedata']=array(
	'title'=>$return['setting']['share_title']?$return['setting']['share_title']:'Home page - online mall',
	'desc'=>$return['setting']['share_desc']?$return['setting']['share_desc']:'Online shopping mall and a personal shopping！',
	'link'=>custom_url($sharelink,true),
	'imgUrl'=>tomedia($return['setting']['share_image'])
);
?>